package com.hq.mes.bussiness.warehouse.domain;
import com.alibaba.fastjson.annotation.JSONField;
import com.hq.mes.bussiness.BussinessBaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import java.io.Serializable;
import java.util.Objects;
import java.util.Set;

/**
* @author wsq
* @date 2021-12-16
*/
@Entity
@Getter
@Setter
@Table(name = "hq_warehouse")
@SQLDelete(sql = "update hq_warehouse set is_del = 'true' where id = ?")
@Where(clause = "is_del <> 'true' or is_del is null")
@org.hibernate.annotations.Table(appliesTo = "hq_warehouse",comment="仓库表")
public class Warehouse extends BussinessBaseEntity {


    @Column(columnDefinition = "varchar(20) not null COMMENT '仓库类型'")
    private String 	type;

    @Column( columnDefinition = "varchar(20) default 'true' COMMENT '可用状态'",insertable = false)
    /* 10:表示启用,01:表示禁用 */
    private String is_enable;
}